!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0a337336-0a3f-49ae-bdd6-88583141044b",e._sentryDebugIdIdentifier="sentry-dbid-0a337336-0a3f-49ae-bdd6-88583141044b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[162],{64674:function(){},28230:function(e,t,n){"use strict";n.d(t,{x8:function(){return ex},VY:function(){return e_},dk:function(){return ek},aV:function(){return eE},h_:function(){return eR},fC:function(){return ey},Dx:function(){return eD},xz:function(){return eC}});var r=n(2265),o=n(6741),a=n(98575),i=n(73966),l=n(99255),c=n(80886),u=n(15278),s=n(99103),d=n(83832),f=n(71599),p=n(66840),v=n(86097),h=n(5853),g=n(85770),m=n(17325),w=(0,n(31412)._)(),b=function(){},y=r.forwardRef(function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:b}),a=o[0],i=o[1],l=e.forwardProps,c=e.children,u=e.className,s=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noIsolation,g=e.inert,y=e.allowPinchZoom,C=e.as,R=e.gapMode,E=(0,h.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=(0,m.q)([n,t]),D=(0,h.__assign)((0,h.__assign)({},E),a);return r.createElement(r.Fragment,null,d&&r.createElement(p,{sideCar:w,removeScrollBar:s,shards:f,noIsolation:v,inert:g,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:R}),l?r.cloneElement(r.Children.only(c),(0,h.__assign)((0,h.__assign)({},D),{ref:_})):r.createElement(void 0===C?"div":C,(0,h.__assign)({},D,{className:u,ref:_}),c))});y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},y.classNames={fullWidth:g.zi,zeroRight:g.pF};var C=n(49085),R=n(5517),E=n(18704),_=!1;if("undefined"!=typeof window)try{var D=Object.defineProperty({},"passive",{get:function(){return _=!0,!0}});window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch(e){_=!1}var k=!!_&&{passive:!1},x=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},I=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),N(e,r)){var o=j(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},N=function(e,t){return"v"===e?x(t,"overflowY"):x(t,"overflowX")},j=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},M=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,c=n.target,u=t.contains(c),s=!1,d=l>0,f=0,p=0;do{var v=j(e,c),h=v[0],g=v[1]-v[2]-i*h;(h||g)&&N(e,c)&&(f+=g,p+=h),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},P=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},S=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},T=0,O=[],W=(0,C.L)(w,function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),a=r.useState(T++)[0],i=r.useState(E.Ws)[0],l=r.useRef(e);r.useEffect(function(){l.current=e},[e]),r.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,h.__spreadArray)([e.lockRef.current],(e.shards||[]).map(F),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=r.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var r,a=P(e),i=n.current,c="deltaX"in e?e.deltaX:i[0]-a[0],u="deltaY"in e?e.deltaY:i[1]-a[1],s=e.target,d=Math.abs(c)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=I(d,s);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=I(d,s)),!f)return!1;if(!o.current&&"changedTouches"in e&&(c||u)&&(o.current=r),!r)return!0;var p=o.current||r;return M(p,t,e,"h"===p?c:u,!0)},[]),u=r.useCallback(function(e){if(O.length&&O[O.length-1]===i){var n="deltaY"in e?S(e):P(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?c(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=r.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=r.useCallback(function(e){n.current=P(e),o.current=void 0},[]),f=r.useCallback(function(t){s(t.type,S(t),t.target,c(t,e.lockRef.current))},[]),p=r.useCallback(function(t){s(t.type,P(t),t.target,c(t,e.lockRef.current))},[]);r.useEffect(function(){return O.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,k),document.addEventListener("touchmove",u,k),document.addEventListener("touchstart",d,k),function(){O=O.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,k),document.removeEventListener("touchmove",u,k),document.removeEventListener("touchstart",d,k)}},[]);var v=e.removeScrollBar,g=e.inert;return r.createElement(r.Fragment,null,g?r.createElement(i,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,v?r.createElement(R.jp,{gapMode:e.gapMode}):null)}),L=r.forwardRef(function(e,t){return r.createElement(y,(0,h.__assign)({},e,{ref:t,sideCar:W}))});L.classNames=y.classNames;var A=n(5478),B=n(37053),V=n(57437),X="Dialog",[Y,z]=(0,i.b)(X),[Z,H]=Y(X),q=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:u=!0}=e,s=r.useRef(null),d=r.useRef(null),[f=!1,p]=(0,c.T)({prop:o,defaultProp:a,onChange:i});return(0,V.jsx)(Z,{scope:t,triggerRef:s,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};q.displayName=X;var K="DialogTrigger",U=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(K,n),l=(0,a.e)(t,i.triggerRef);return(0,V.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ev(i.open),...r,ref:l,onClick:(0,o.M)(e.onClick,i.onOpenToggle)})});U.displayName=K;var G="DialogPortal",[J,Q]=Y(G,{forceMount:void 0}),$=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:a}=e,i=H(G,t);return(0,V.jsx)(J,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,V.jsx)(f.z,{present:n||i.open,children:(0,V.jsx)(d.h,{asChild:!0,container:a,children:e})}))})};$.displayName=G;var ee="DialogOverlay",et=r.forwardRef((e,t)=>{let n=Q(ee,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=H(ee,e.__scopeDialog);return a.modal?(0,V.jsx)(f.z,{present:r||a.open,children:(0,V.jsx)(en,{...o,ref:t})}):null});et.displayName=ee;var en=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=H(ee,n);return(0,V.jsx)(L,{as:B.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,V.jsx)(p.WV.div,{"data-state":ev(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),er="DialogContent",eo=r.forwardRef((e,t)=>{let n=Q(er,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=H(er,e.__scopeDialog);return(0,V.jsx)(f.z,{present:r||a.open,children:a.modal?(0,V.jsx)(ea,{...o,ref:t}):(0,V.jsx)(ei,{...o,ref:t})})});eo.displayName=er;var ea=r.forwardRef((e,t)=>{let n=H(er,e.__scopeDialog),i=r.useRef(null),l=(0,a.e)(t,n.contentRef,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,A.Ry)(e)},[]),(0,V.jsx)(el,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),ei=r.forwardRef((e,t)=>{let n=H(er,e.__scopeDialog),o=r.useRef(!1),a=r.useRef(!1);return(0,V.jsx)(el,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),el=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,...c}=e,d=H(er,n),f=r.useRef(null),p=(0,a.e)(t,f);return(0,v.EW)(),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(s.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,V.jsx)(u.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":ev(d.open),...c,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ew,{titleId:d.titleId}),(0,V.jsx)(eb,{contentRef:f,descriptionId:d.descriptionId})]})]})}),ec="DialogTitle",eu=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=H(ec,n);return(0,V.jsx)(p.WV.h2,{id:o.titleId,...r,ref:t})});eu.displayName=ec;var es="DialogDescription",ed=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=H(es,n);return(0,V.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:t})});ed.displayName=es;var ef="DialogClose",ep=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=H(ef,n);return(0,V.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>a.onOpenChange(!1))})});function ev(e){return e?"open":"closed"}ep.displayName=ef;var eh="DialogTitleWarning",[eg,em]=(0,i.k)(eh,{contentName:er,titleName:ec,docsSlug:"dialog"}),ew=e=>{let{titleId:t}=e,n=em(eh),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},eb=e=>{let{contentRef:t,descriptionId:n}=e,o=em("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(a)},[a,t,n]),null},ey=q,eC=U,eR=$,eE=et,e_=eo,eD=eu,ek=ed,ex=ep}}]);